#define  _CRT_SECURE_NO_WARNINGS  1
#include <stdio.h>
int main()
{
	int a[11][100] = { 1 };
	int i = 0, j = 0;
	int n = 1;
	int k = 0;
	for (i = 0; i <= 10; i++)
	{
		for (j = 0; j < n; j++)
		{
			
			if (j > 0)
			{
				a[i][j] = a[i - 1][j - 1] + a[i - 1][j];
				printf("%d", a[i][j]);
				if (j != i)
					printf(" ");
			}

		}
		if (i > 0&&i!=10)
			printf("\n");
		n++;
	}

	return 0;
}